package dao;

import java.io.File;

import bean.LastIdsBean;

/**
 * Class responsible for the operations of Announcement
 */ 
public class LastIdsDAO extends AbstractDAO<LastIdsBean>{

	private static final File DB = new File("./LastIds.xml");
	private static LastIdsDAO instance;

	private LastIdsDAO(){	}


	/**
	 * Singleton 
	 * Return instance of LastIdsDAO
	 * @return instance of LastIdsDAO
	 */
	public static synchronized LastIdsDAO getInstance(){
		if(instance == null)
			instance = new LastIdsDAO();
		return instance;
	}

	@Override
	protected File getDBFileName() {
		return DB;
	}

}

